package cn.exrick.xboot.quartz.jobs.distributedLock;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@Api(description = "测试分布式锁")
@RequestMapping("/xboot/TestRedisController")
@Transactional
public class TestRedisController {
    @Autowired
    private  test test;


    @RequestMapping(value = "/getById", method = RequestMethod.GET)
    @ApiOperation(value = "通过id获取")
    public void testController(){
        test.testDistributed();
    }
}
